@import '../../scss/variable';
.yb-banner {
  position: relative;
  width: 100%;
  height: 600px;
  background-image: url('../../images/banner.jpg');
  background-position: 50% 30%;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
  .swiper-container {
    width: 100%;
    height: 100%;
  }
  .swiper-slide {
    padding-top: 200px;
    box-sizing: border-box;
    h1 {
      font-size: 36px;
      margin-bottom: 15px;
    }
    h3 {
      font-weight: 400;
      margin-bottom: 30px;
    }
    .button {
      color: #fff;
      border: 2px solid rgba(255, 255, 255, 0.6);
      &:hover {
        color: $theme;
        border-color: $theme;
      }
    }
  }
  .pagination {
    position: absolute;
    z-index: 2;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    .swiper-pagination-switch {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 10px;
      border: 1.5px solid #404040;
      border-color: rgba(255, 255, 255, 0.25);
      margin: 0 8px;
      cursor: pointer;
    }
    .swiper-active-switch {
      border-color: #fff;
    }
  }
}

.product-catalog {
  .tab-nav {
    display: flex;
    width: 100%;
    padding: 40px 0 20px;
    align-items: center;
    justify-content: center;
    li {
      vertical-align: middle;
      flex: 1;
      &.active {
        a {
          color: $theme;
          &:after {
            position: absolute;
            bottom: -20px;
            content: '';
            display: inline-block;
            width: 0;
            height: 0;
            margin-left: -10px;
            border: 10px solid transparent;
            border-bottom-color: #eaeaea;
          }
        }
      }
      a {
        position: relative;
        display: block;
        padding: 20px 0;
        text-align: center;
        color: #666;
        &:hover {
          color: $theme;
        }
        p {
          margin-top: 10px;
          font-size: 15px;
        }
      }
    }
  }
  .product-catalog-content {
    padding: 30px 0;
    background-color: #eaeaea;
  }
}

.catalog-domain {
  width: 1050px;
  margin: auto;
  .domain-inquire {
    .input-group {
      .button {
        padding-left: 16px;
        padding-right: 16px;
        color: darken(#ced4da, 30%);
        background-color: #ced4da;
      }
    }
  }
  .domain-catalog,
  .domain-catalog-toolbar {
    overflow: hidden;
    .button {
      margin: 5px 0;
      color: $theme;
      border-color: $theme;
    }
  }
  .checkbox,
  .radio {
    width: 90px;
    margin: 5px 0 5px 15px;
    float: left;
    .fa-fire {
      color: #E84E40;
    }
  }
}

.catalog-website,
.catalog-host,
.catalog-mail,
.catalog-service {
  display: table;
  width: 100%;
  border-collapse: separate;
  li {
    display: table-cell;
    vertical-align: top;
  }
}

.catalog-website {
  li {
    width: 20%;
    text-align: center;
    a {
      position: relative;
      display: block;
      padding: 15px 0;
      transition: all .2s ease-in;
      &:hover {
        background-color: #fff;
        box-shadow: 0 0 8px 0 rgba(0, 0, 0, .15);
      }
    }
    h4 {
      color: #333;
    }
    p {
      color: #999;
    }
    .fa-fire {
      color: #E84E40;
    }
  }
}

.catalog-host {
  li {
    width: 25%;
    padding-left: 80px;
    a {
      color: #999;
      &:hover {
        color: $theme;
        .fa {
          opacity: 1;
          transform: translate3d(20px, 0, 0);
        }
      }
      .fa {
        opacity: 0;
        transition: all .2s ease-in;
      }
    }
  }
}

.catalog-mail {
  li {
    width: 25%;
    padding: 15px 20px;
    vertical-align: middle;
    &:hover {
      background-color: #fff;
      box-shadow: 0 0 8px 0 rgba(0, 0, 0, .15);
    }
    p {
      color: #999;
    }
    a {
      display: block;
      text-align: center;
      color: #999;
      &:hover {
        color: $theme;
      }
    }
  }
}

.catalog-service {
  li {
    width: 20%;
    padding: 15px 15px 15px 50px;
    &:hover {
      background-color: #fff;
      box-shadow: 0 0 8px 0 rgba(0, 0, 0, .15);
    }
    p {
      color: #999;
    }
  }
}

.recommend-host {
  margin: 40px 0 80px;
  .tab-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 194px;
    height: 100%;
    li{
      height: 83px;
      overflow: hidden;
      transition: height .3s ease-in;
      &:first-child{
        border-top: none;
      }
      a{
        display: block;
        height: 100%;
        box-sizing: border-box;
        padding: 20px;
        color: #666;
        background-color: #eaeaea;
        border-left: 5px solid $theme;
        transition: all .3s ease-in;
        &:hover{
          color: #fff;
          background-color: $theme;
        }
        small{
          display: block;
          margin-top: 5px;
        }
        .desc{
          opacity: 0;
          text-align: justify;
          transform: translate3d(0, 10px, 0);
          transition: all .3s ease-in;
        }
      }
      &.active{
        height: 244px;
        a{
          color: $theme;
          background-color: #fff;
          .desc{
            opacity: 1;
            color: #777;
            transform: translate3d(0, 0, 0);
          }
        }
      }
    }
  }
  .tab-content {
    padding-left: 210px;
  }
}

.recommend-host-list {
  display: flex;
  >li {
    flex: 1;
    margin: 0 15px;
    .card-header {
      color: #fff;
      background: url('../../images/listItembg.png');
      .name {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 5px;
      }
      .larger-text {
        font-size: 22px;
      }
    }
    .list-group {
      li {
        padding: 10px 0;
        font-size: 12px;
        line-height: 20px;
        color: #666;
        border-top: 1px solid #eaeaea;
        &:first-child{
          border-top: none;
        }
        a{
          color: darken($theme, 8%);
          &:hover{
            color: $theme;
          }
        }
      }
    }
  }
}
.features-section{
  background: url('../../images/section_2_bg.jpg') no-repeat center center;
  background-attachment: fixed;
  .features-row{
    display: table;
    width: 90%;
    min-width: 1000px;
    margin-left: 5%;
    margin-right: 5%;
    height: 360px;
    li{
      display: table-cell;
      width: 200px;
      padding-left: 15px;
      padding-right: 15px;
      padding-top: 129px;
      vertical-align: top;
      text-align: center;
      color: rgba(255, 255, 255, 0.84);
      transition: all .3s ease-in;
      &:hover{
        background-color: rgba($theme,.84);
        padding-top: 82px;
        p, .button{
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }
      h3, p{
        margin-bottom: 1em;
      }
      h3{
        .fa{
          margin-bottom: 8px;
        }
      }
      p, .button{
        opacity: 0;
        transform: translate3d(0, 30px, 0);
        transition: all .3s ease-in;
      }
      .button{
        border: 1px solid rgba(255,255,255,.84);
        color: rgba(255,255,255,.84);
        &:hover{
          background-color: #fff;
          border-color: #fff;
          color: rgba($theme,.84);
        }
      }
    }
  }
}
.forum-list{
  display: flex;
  justify-content: center;
  margin: 40px 0 80px;
  .forum-list-item{
    flex: 0 0 auto;
    width: 380px;
    margin: 0 15px;
    .forum-item-head{
      position: relative;
      padding: 15px;
      color: rgba(255,255,255,.84);
      font-size: 18px;
      font-weight: 600;
      background-color: #6c757d;
      overflow: hidden;
      &:after{
        position: absolute;
        content: '';
        right: 0;
        top: -120%;
        width: 50%;
        height: 200%;
        background-color: lighten(#6c757d,5%);
        border-radius: 100%;
      }
      small{
        display: block;
        font-weight: 500;
        text-transform: uppercase;
      }
    }
    .forum-item-body{
      padding: 10px 0;
      ul>li{
        border-top: 1px dotted rgba(#6c757d,.5);
        &:first-child{
          border-top: none;
        }
        a{
          display: block;
          padding: 10px 0;
          color: #666;
          &:hover{
            color: $theme;
          }
          .time{
            float: right;
            font-size: 12px;
            color: #95989D;
          }
          .title{
            display: inline-block;
            width: calc(100% - 70px);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }
      }
    }
  }
}